package me.hetong.tool;

import cn.hutool.core.util.IdUtil;

import java.math.BigInteger;

/**
 * 62进制工具类
 */
public class TtIdUtil {

    public static String fastSimpleUUIDOfBase62() {
        String uuid = IdUtil.fastSimpleUUID();
        return TtBase62Tool.hexToBase62(uuid);
    }

    public static void main(String[] args) {
//        for (int i = 0; i < 20; i++) {
//            String s = IdUtil.fastSimpleUUID();
//            String base62 = hexToBase62(s);
//            System.out.println("16进制: " + s);
//            System.out.println("62进制: " + base62);
//            System.out.println("长度变化: " + s.length() + " -> " + base62.length());
//        }
//         System.out.println(hexToBase62("2c20e8f88b2f0ec369c03aeedb2452ef"));
        for (int i = 0; i < 10; i++) {
            System.out.println(fastSimpleUUIDOfBase62());
        }
    }

}
